public class SwapBlock extends Map{
	/**
	 *
	 */
	private static final long serialVersionUID = 1L;

	public void swapBlock(int map[][], int i, int j) {
		if(map[i][j] != 7 && map[i+1][j] != 7 && map[i][j+1] != 7 && map[i+1][j+1] != 7){
			int tmp1 = map[i][j];
			int tmp2 = map[i][j+1];
			int tmp3 = map[i+1][j];
			int tmp4 = map[i+1][j+1];

			map[i][j] = tmp2;
			map[i][j+1] = tmp4;
			map[i+1][j] = tmp1;
			map[i+1][j+1] = tmp3;
		}
	}
}


